/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package mp.weixin.WXpublic.receive.event;

import mp.weixin.WXpublic.BaseEvent;

/**
 * 关注事件(订阅)
 *
 * @author 王仲秋
 */
public class SubscribeEventEntity extends BaseEvent {

    /**
     * 如果是扫码时未关注 这个事件在微信中不定义为 扫码时间 是关注事件 所以 这个时候添加一个扫码对象
     * 同时获取扫码内容
     */
    private ScanEventEntity scan;

    public ScanEventEntity getScan() {
        return scan;
    }

    public void setScan(ScanEventEntity scan) {
        this.scan = scan;
    }

    @Override
    public EventEnum getEvent() {
        return EventEnum.UNSUBSCRIBE;
    }

    @Override
    public String toString() {
        return "SubscribeEventEntity{" + "scan=" + scan + '}'+super.toString();
    }



    
}
